# -*- coding: utf-8 -*-
import json
import sys


class Setting(object):
    '''
    加载配置文件
    '''
    def __init__(self):
        self.setting = {}
        self.load()

    def load(self, path=None):
        if path is None:
            path = './global-setting.json'
        with open(path, 'r', encoding='UTF-8') as fd:
            self.setting = json.load(fd)


if __name__ == '__main__':
    s = Setting()
    print(s.setting)